/* @import url("https://at.alicdn.com/t/font_2448847_ogyed8on8j.css"); */
@import url(../iconfont/iconfont.css);
h1,
h2,
h3,
h4,
p,
ul,
li {
    margin: 0;
    padding: 0;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}
img {
    vertical-align: middle;
}
body {
    font-size: 14px;
    font-family: "微软雅黑", "Arial Narrow", Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    background: transparent;
}
/* 高度配置 */
html,
body,
#app {
    height: 100%;
}
/* 定义css变量 */
:root {
    --primary-color: #00b8d4;
    ---bg-color: #1e293b;
    --card-bg: #2b3a4e;
    --text-color: #fff;
    --border-color: #445a72;
}
.header {
    /* background-color: #1a2332; */
    background-image: url("../img/大标题背景.png");
    background-repeat: no-repeat; /* 禁止图片重复平铺 */
    background-size: cover; /* 图片等比例缩放，覆盖整个容器（可能裁剪边缘） */
    /* background: transparent; */
    /* background-position: center; */
    /* height: 3.5rem; */
    width: 2465px;
    height: 116px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    /* background: transparent !important; */
}
.header .logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-left: 3rem;
    /* background-color: #00b8d4; */
    h1 {
        margin-left: 1rem;
    }
}
.header .nav {
    display: flex;
    gap: 1.5rem;
    /* background-color: #00b8d4; */
}
.header .weather {
    display: flex;
    align-items: center;
    .weather-time {
        /* width: 157px; */
        height: 22px;
        font-size: 20px;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* 加黑色阴影增强边缘清晰度 */
    }
    .el-input__icon {
        height: 46px;
        width: 1rem;
        text-align: center;
        transition: all 0.3s;
        /* line-height: rem; */
    }
    .custom-search-input {
        opacity: 0.7;
        --el-input-bg-color: #5b6d83;
        --el-input-border-color: ##5b6d83;
        --el-input-placeholder-color: #fff;
        --el-input-text-color: #fff;
        --el-input-icon-color: #fff;
    }

    .custom-search-input .el-input__inner {
        opacity: 0.7;
        background-color: #5b6d83;
        border: none;
        color: #fff;
        border-radius: 20px;
        height: 2.5rem;
        line-height: 2.5rem;
        font-size: 20px;
    }

    .custom-search-input .el-input__inner::placeholder {
        color: #fff;
    }

    .custom-search-input .el-input-group__append {
        opacity: 0.7;
        background-color: #5b6d83;
        border: none;
        border-radius: 0 4px 4px 0;
    }

    .custom-search-input .el-input-group__append .el-button {
        opacity: 0.7;
        background-color: #5b6d83;
        border: none;
        color: #fff;
    }
    /* width: 15rem; */
}
.container {
    display: grid;
    /* 左侧统计栏+右侧内容区 */
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    padding: 1.5rem;
    flex: 1;
}
/* 通用样式 */
.energy-usage {
    display: flex;
    justify-content: space-around;
    margin: 20px;
}
.energy-usage-ton {
    display: flex;
    justify-content: space-around;
    margin: 6px 8px;
}

.usage-item {
    margin-right: 10px;
    text-align: center;
    width: 170px; /* 可根据实际情况调整宽度 */
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.usage-header-ton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: red;
    margin-bottom: 1px;
}
.usage-title {
    font-weight: bold;
    width: 200px; /* 五个字的宽度，可根据实际情况调整 */
    text-align: left;
    color: #fff !important;
}

.usage-percentage {
    color: #ff9800;
}

.usage-values {
    text-align: left;
}
.usage-percentage-elc {
    color: #ff6969;
    text-align: left;
}
.usage-percentage-air {
    color: #f7c071;
    text-align: left;
}
.usage-percentage-ton {
    color: #bdffd1;
    text-align: left;
}
.usage-percentage-ton-t {
    color: #e16060;
    text-align: left;
}
